<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Test</title>
  <!-- 确保路径正确 -->
  <script src="/templates/vue2.min.js"></script>
</head>
<body>
  <div id="app">
    <h1>{{ message }}</h1>
  </div>

  <!-- 占位符 -->
  <script id="template-data-placeholder"></script>

  <script>
    console.log('📄 页面已加载');
    console.log('Vue 可用:', typeof Vue !== 'undefined');

    new Vue({
      el: '#app',
      data() {
        return window.templateData;
      },
      mounted() {
        console.log('✅ Vue 已挂载:', this.$data);
      }
    });
    
  </script>
</body>
</html>